package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysChatMessage;

/**
 * 聊天消息业务对象 sys_chat_message
 *
 * @author Lion Li
 * @date 2025-02-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysChatMessage.class, reverseConvertGenerate = false)
public class SysChatMessageBo extends BaseEntity {

    /**
     * 用户状态ID
     */
    @NotNull(message = "用户状态ID不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 房间ID
     */
    private Long roomId;

    /**
     * 消息发送者ID
     */
    private Long fromId;

    /**
     * 发送消息
     */
    private String content;

    /**
     * 回复消息ID
     */
    private Long replyMsgId;

    /**
     * 消息状态（0：删除、1：正常）
     */
    private Long status;

    /**
     * 与回复的消息间隔多少条
     */
    private Long gapCount;

    /**
     * 消息类型 1正常文本 2.撤回消息
     */
    private Long type;

    /**
     * 扩展消息
     */
    private String extraMsg;

    /**
     * 备注
     */
    private String remark;


}
